//
//  XJTieZiDetailModel.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/7.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <Foundation/Foundation.h>

@class XJTieZiDetailCommentModel,XJTieZiDetailChildCommentModel;

@interface XJTieZiDetailModel : NSObject
/**1.转评论数组:XJTieZiDetailCommentModel*/
@property (nonatomic, strong) NSMutableArray <XJTieZiDetailCommentModel *> *invitation_comments;
/**2.发帖时间*/
@property (nonatomic, copy) NSString *publish_time;
/**3.名字*/
@property (nonatomic, copy) NSString *publish_name;
/**4.帖子内容*/
@property (nonatomic, copy) NSString *plain_content;
/**5.浏览人数*/
@property (nonatomic, copy) NSString *click_count;

/**6.头像*/
@property (nonatomic, copy) NSString *avator;
///**6.计算cell的高度*/
//@property(nonatomic, assign) NSInteger cellHeight;

// 真不知道参数名字怎么起名。 三个id。
/**7.请求参数 id*/
@property (nonatomic, copy) NSString *xjTieZiDetailModelId;
@end



@class XJTieZiDetailChildCommentModel;
// 评论Model
@interface XJTieZiDetailCommentModel : NSObject
/**1.id 请求参数 ✅*/
@property (nonatomic, copy) NSString *detailCommentId;
/**2.子评论数组*/
@property (nonatomic, strong) NSMutableArray <XJTieZiDetailChildCommentModel*> *child_comments;
/**3.文字内容*/
@property (nonatomic, copy) NSString *text;
/**4.发帖时间*/
@property (nonatomic, copy) NSString *publish_time;
/**5.图标*/
@property (nonatomic, copy) NSString *avatar;
/**6.搞不清楚他们这逻辑*/
@property (nonatomic, copy) NSString *nickname;
/**7.用户id ✅ 用于比对是不是是自己*/
@property (nonatomic, copy) NSString *customer_id;


@end



// 子评论Model
@interface XJTieZiDetailChildCommentModel:NSObject
/**1.自评论id*/
@property (nonatomic, copy) NSString *childCommentId;
/**2.文字内容*/
@property (nonatomic, copy) NSString *text;

//"张三"  回复  "李四"
/**是否显示 “张三” 回复 "李四" 如果level = 3 ✅ 其他 只显示:李四:xxxxxx*/
@property (nonatomic, copy) NSString *level;

/**3.张三*/
@property (nonatomic, copy) NSString *nickname;
/**4.李四:正常情况显示的就是 李四xxxx*/
@property (nonatomic, copy) NSString *target_nickname;
/**5.时间*/
@property (nonatomic, copy) NSString *publish_time;

@end



#pragma mark - 服务器返回数据参考一
/**
 {
 "data" : {
 "invitation_info" : {
 "invitation_comments" : [
 {
 "id" : 389,
 "child_comments" : [
 {
 "id" : 391,
 "target_customer_id" : 30,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 2,
 "target_id" : 389,
 "is_delete" : 0,
 "text" : "吃的接电话范冰冰",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 3,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/a0dc18517bbb414aba1866395281ff8f.png",
 "publish_time" : "2018-06-06",
 "nickname" : "很好",
 "target_nickname" : "AnbS"
 },
 {
 "id" : 392,
 "target_customer_id" : 3,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 3,
 "target_id" : 391,
 "is_delete" : 0,
 "text" : "该睡觉了",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 35,
 "avatar" : "http:\/\/static.zertone1.com\/UD0Rsi8xIrE5ZEFMVvt3j8l9TNUkWVXE.png",
 "publish_time" : "2018-06-06",
 "nickname" : "1234",
 "target_nickname" : "很好"
 }
 ],
 "target_customer_id" : 1,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 1,
 "target_id" : 0,
 "is_delete" : 0,
 "text" : "图KKK",
 "invitation_type" : "ymt",
 "target_type" : 1,
 "customer_id" : 30,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/73168211fab141caaa1ca43a82414179.jpg",
 "publish_time" : "2018-06-06",
 "nickname" : "AnbS",
 "target_nickname" : "张三"
 },
 {
 "id" : 390,
 "child_comments" : [
 {
 "id" : 397,
 "target_customer_id" : 3,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 2,
 "target_id" : 390,
 "is_delete" : 0,
 "text" : "拒绝了",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 35,
 "avatar" : "http:\/\/static.zertone1.com\/UD0Rsi8xIrE5ZEFMVvt3j8l9TNUkWVXE.png",
 "publish_time" : "2018-06-06",
 "nickname" : "1234",
 "target_nickname" : "很好"
 },
 {
 "id" : 400,
 "target_customer_id" : 35,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 3,
 "target_id" : 398,
 "is_delete" : 0,
 "text" : "垃圾货",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 30,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/73168211fab141caaa1ca43a82414179.jpg",
 "publish_time" : "2018-06-06",
 "nickname" : "AnbS",
 "target_nickname" : "1234"
 },
 {
 "id" : 410,
 "target_customer_id" : 3,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 2,
 "target_id" : 390,
 "is_delete" : 0,
 "text" : "搬家",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 7,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/acf3afd39f2d4f44b7f00909e70d5297.jpg",
 "publish_time" : "21小时前",
 "nickname" : "都纷纷",
 "target_nickname" : "很好"
 },
 {
 "id" : 439,
 "target_customer_id" : 35,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 3,
 "target_id" : 397,
 "is_delete" : 0,
 "text" : "搜狐心咯",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 30,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/73168211fab141caaa1ca43a82414179.jpg",
 "publish_time" : "4小时前",
 "nickname" : "AnbS",
 "target_nickname" : "1234"
 },
 {
 "id" : 442,
 "target_customer_id" : 30,
 "type" : 1,
 "invitation_id" : 63,
 "level" : 3,
 "target_id" : 439,
 "is_delete" : 0,
 "text" : "你个逗逼",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 1,
 "avatar" : "http:\/\/static.zertone1.com\/UYBedpu4NoTOONgoYkJR5MFpiNIjQhGs.jpg",
 "publish_time" : "4小时前",
 "nickname" : "张三",
 "target_nickname" : "AnbS"
 },
 {
 "id" : 443,
 "target_customer_id" : 1,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 3,
 "target_id" : 439,
 "is_delete" : 0,
 "text" : "头回",
 "invitation_type" : "ymt",
 "target_type" : 1,
 "customer_id" : 30,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/73168211fab141caaa1ca43a82414179.jpg",
 "publish_time" : "4小时前",
 "nickname" : "AnbS",
 "target_nickname" : "张三"
 }
 ],
 "target_customer_id" : 1,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 1,
 "target_id" : 0,
 "is_delete" : 0,
 "text" : "vv刚刚",
 "invitation_type" : "ymt",
 "target_type" : 1,
 "customer_id" : 3,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/a0dc18517bbb414aba1866395281ff8f.png",
 "publish_time" : "2018-06-06",
 "nickname" : "很好",
 "target_nickname" : "张三"
 },
 {
 "id" : 435,
 "child_comments" : [
 {
 "id" : 438,
 "target_customer_id" : 7,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 2,
 "target_id" : 435,
 "is_delete" : 0,
 "text" : "陌陌了",
 "invitation_type" : "ymt",
 "target_type" : 0,
 "customer_id" : 7,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/acf3afd39f2d4f44b7f00909e70d5297.jpg",
 "publish_time" : "4小时前",
 "nickname" : "都纷纷",
 "target_nickname" : "都纷纷"
 }
 ],
 "target_customer_id" : 1,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 1,
 "target_id" : 0,
 "is_delete" : 0,
 "text" : "考虑考虑",
 "invitation_type" : "ymt",
 "target_type" : 1,
 "customer_id" : 7,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/acf3afd39f2d4f44b7f00909e70d5297.jpg",
 "publish_time" : "4小时前",
 "nickname" : "都纷纷",
 "target_nickname" : "张三"
 },
 {
 "id" : 436,
 "child_comments" : [
 
 ],
 "target_customer_id" : 1,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 1,
 "target_id" : 0,
 "is_delete" : 0,
 "text" : "啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了",
 "invitation_type" : "ymt",
 "target_type" : 1,
 "customer_id" : 7,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/acf3afd39f2d4f44b7f00909e70d5297.jpg",
 "publish_time" : "4小时前",
 "nickname" : "都纷纷",
 "target_nickname" : "张三"
 },
 {
 "id" : 437,
 "child_comments" : [
 
 ],
 "target_customer_id" : 1,
 "type" : 0,
 "invitation_id" : 63,
 "level" : 1,
 "target_id" : 0,
 "is_delete" : 0,
 "text" : "啦咯了考虑图\n",
 "invitation_type" : "ymt",
 "target_type" : 1,
 "customer_id" : 7,
 "avatar" : "http:\/\/static.zertone1.com\/upload\/avatar\/2018_03_23\/acf3afd39f2d4f44b7f00909e70d5297.jpg",
 "publish_time" : "4小时前",
 "nickname" : "都纷纷",
 "target_nickname" : "张三"
 }
 ],
 "publisher" : 1,
 "status" : 2,
 "title" : "西湖",
 "active" : 1,
 "click_count" : 20,
 "create_time" : 1528252223408,
 "publish_account" : "admin",
 "html_content" : "<p>程序集自控力房间号<\/p>",
 "laud_count" : 0,
 "publish_time" : "2018-06-06",
 "type" : "ymt",
 "id" : 63,
 "publish_name" : "张三",
 "plain_content" : "程序集自控力房间号",
 "media_context" : [
 {
 "context" : "程序集自控力房间号",
 "type" : "text"
 }
 ],
 "avatar" : "http:\/\/static.zertone1.com\/UYBedpu4NoTOONgoYkJR5MFpiNIjQhGs.jpg",
 "is_collection" : 0,
 "is_delete" : 0,
 "collection_count" : 0,
 "comment_count" : 20,
 "content" : "[{\"type\":\"text\",\"content\":\"程序集自控力房间号\"}]"
 }
 },
 "code" : 0
 }

 */

#pragma mark - 服务返回数据参考二

